module Admin::HomeHelper

	def is_on?(on, index)
    on.to_i == index.to_i ? "class='on'" : ""
  end
  
  def logined_admin_user
    current_admin.admin_name if current_admin
  end
  
  def current_admin
    if session[:admin_user]
      @current_admin ||= AdminUser.find_by_id(session[:admin_user])
    end
  end
  
end
